//
// Created by AnTler on 2018/11/30.
//

#ifndef LUA_IMAGEUTILS_H
#define LUA_IMAGEUTILS_H

#include <jni.h>

#include <string>

#include "common/log.h"

#include "luaext/rect/Rect.h"

namespace ImageUtils {
    jobject fromScreen(const Rect &rect);

    jobject fromFile(const std::string &filePath);

    bool saveToFile(jobject jBitmap, const std::string &filePath, int quality);

    jobject rotation(jobject jBitmap, float degree);

    jobject clip(jobject jBitmap, const Rect &rect);

    jobject *binarize();
};


#endif //LUA_IMAGEUTILS_H
